<?php
/**
 * 具体访问者，成功状态
 * Class ConcreteVisitorSuccess
 */
class ConcreteVisitorSuccess extends VisitorState
{
    public function __construct()
    {
        $this->state_name = '成功';
    }

    public function getManConclusion(ConcreteElementMan $concreteElementMan)
    {
        // TODO: Implement getManConclusion() method.
        echo "{$concreteElementMan->type_name}:{$this->state_name}时，背后多半有一个伟大的女人。<br/>";
    }

    public function getWomanConclusion(ConcreteElementWoman $concreteElementWoman)
    {
        // TODO: Implement getWomanConclusion() method.
        echo "{$concreteElementWoman->type_name}:{$this->state_name}时，背后大多有一个不成功的男人。<br/>";
    }
}


